import React from 'react';
import Main from './Main';
import About from './About';
import Topic from './Topic';
import { HashRouter, Route, Link, Switch} from 'react-router-dom';
export default class Home extends React.Component{
    render() {
        return (
            <HashRouter>
                <div>
                  
               <ul>
                   <li><Link to='/'>Main</Link></li>
                   <li><Link to='/about'>About</Link></li>
                   <li><Link to='/Topic'>Topic</Link></li>
               </ul>
               <hr/>
               <Switch>
               <Route path='/' exact   component={Main} />
               <Route path='/about' exact   component={About} />
               <Route path='/topic' exact   component={Topic} />
               </Switch>
                </div>
            </HashRouter>
        )
    }
}
